<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>ZDH 通知</title>
    <meta name="keywords" content="ZDH 通知">
    <meta name="description" content="ZDH 通知">

    <link rel="shortcut icon" href="img/favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link href="css/plugins/datetimepicker/datetimepicker.css" rel="stylesheet">


</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>信息详情</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
                <a class="dropdown-toggle" data-toggle="dropdown" href="buttons.html#">
                    <i class="fa fa-eye"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li><a href="javascript:void(0);" onclick="getResourceDesc()">功能说明</a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
                <form id="form_log" class="form-inline">

                </form>
                <br/> <br/>


                <div class="col-sm-12">
                    <textarea id="textarea_logs" name="textarea_logs" class="form-control" style="background-color: white"
                              rows="20" readonly></textarea>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>

<script src="js/zdh_common.js"></script>
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>

<!-- layer javascript -->
<script src="js/plugins/layer/layer.min.js"></script>

<script src="js/plugins/datetimepicker/bootstrap-datetimepicker.min.js"></script>

<script src="js/plugins/datetimepicker/bootstrap-datetimepicker.zh-CN.js"></script>
<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>

<!--iframe 标签-->
<script type="text/javascript" src="js/contabs.js"></script>


<!-- Bootstrap table -->
<script src="js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

<script src="js/plugins/layer/laydate/laydate.js"></script>

<script>


    $(function () {

        var url = location.search; //这一条语句获取了包括问号开始到参数的最后，不包括前面的路径
        var params = url.substr(1);//去掉问号
        var pa = params.split("&");
        var s = new Object();//定义一个全局变量-存储任务ID
        for (var i = 0; i < pa.length; i++) {
            s[pa[i].split("=")[0]] = unescape(pa[i].split("=")[1]);
        }


        function message_detail() {
            var url = location.search; //这一条语句获取了包括问号开始到参数的最后，不包括前面的路径
            var params = url.substr(1);//去掉问号
            var pa = params.split("&");
            var s = new Object();
            for (var i = 0; i < pa.length; i++) {
                s[pa[i].split("=")[0]] = unescape(pa[i].split("=")[1]);
            }
            $.ajax({
                type: 'POST',
                url: server_context+"/notice_message",
                dataType: 'json',
                data: $("#form_log").serialize() + "&id=" + s.id,
                //发送数据前
                beforeSend: function () {
                    // 禁用按钮防止重复提交
                },
                //成功返回
                success: function (data) {
                    $("#textarea_logs").val(data.result.msg);
                    layer.msg(data.msg)
                },
                //处理完成
                complete: function () {
                    console.info("complete")
                },
                //报错
                error: function (data) {
                    console.info("error: " + data.responseText);
                }
            })
        }

        message_detail()


    })


</script>

</body>

</html>
